// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
Vue.config.productionTip = false
//引入axios
import http from './http'
Vue.prototype.$http = http;
// 引入UI组件
import ElementUI from 'element-ui'
import './theme/index.css'
Vue.use(ElementUI)
// 全局导入所有组件 页面中直接使用，无需注册组件
import Components from './components'
Vue.use(Components);
//引入service
import service from './assets/js/service'
Vue.prototype.$service = service;
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
